package com.ibeeking.found.file.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @author MAC
 * @version 1.0
 * @description: TODO
 * @date 2022/1/12 14:44
 */
@Data
@TableName("file_permission")
public class FilePermissionDO  implements Serializable {
    private static final long serialVersionUID = -1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 共享文件id
     */
    @TableField(value = "file_permission_id")
    public Long filePermissionId;

    /**
     * 共享文件id
     */
    @TableField(value = "common_file_id")
    public Long commonFileId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    public Long userId;

    /**
     * 用户对文件的权限码
     */
    @TableField(value = "file_permission_code")
    public Integer filePermissionCode;

}
